package com.example.calladapter;

import java.io.IOException;
import retrofit2.Call;
import retrofit2.Callback;

public class CustomCall<T> {
  public final Call<T> call;
  
  public CustomCall(Call<T> call) {
    this.call = call;
  }
  
  public T execute() throws IOException {
    return call.execute().body();
  }
  
  public void enqueue(Callback<T> callback){
    call.enqueue(callback);
  }
  
}
